home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
TECHNICA
/
AUTOCAD
/
H108.ZIP
/
JUL91.ZIP
/
TIP671.LSP
< prev
next >
Wrap
Lisp/Scheme
|
1991-08-27
|
744b
|
33 lines
;TIP671.LSP Hidden Arc (c)1991, Richard Bailey
(defun C:CB (/ TE AA A B D E F)
(setq TE nil)
(while (/= TE 1)
(progn
(setq AA (entsel
"\nSelect arc/circle: "))
(setq ENTYP (cdr (assoc 0 (entget
(car AA)))))
(if (= ENTYP "CIRCLE")
(setq TE 1)
)
(if (= ENTYP "ARC")
(setq TE 1)
)
(if (/= TE 1)
(prompt "\nNot a circle or arc.")
)
)
)
(setq A (getpoint
"\nFirst break point: "))
(setq B (getpoint
"\nSecond break point: "))
(command "BREAK" AA "F" A B)
(setq D (cdr (assoc 10 (entget (car AA)
))))
(setq E (osnap A "ENDP"))
(setq F (osnap B "ENDP"))
(command "ARC" "C" D E F)
)